Eclipse Platform
Pre-release 3.0

org.eclipse.jface.text.source
Interface IAnnotationPresentation

All Known Implementing Classes:
DefaultAnnotation, DefaultRangeIndicator, ProjectionAnnotation

public interface IAnnotationPresentation

Interface for annotations that know how to represent themselves.

Since:
3.0

Method Summary
 int getLayer()
          Deprecated. will be removed, configuration will only happen via XML, exists to ensure backward compatibility
 void paint(GC gc, Canvas canvas, Rectangle bounds)
          Implement this method to draw a graphical representation of this annotation within the given bounds.
 

Method Detail

getLayer

public int getLayer()
Deprecated. will be removed, configuration will only happen via XML, exists to ensure backward compatibility

Returns the annotations drawing layer.

Returns:
the annotations drawing layer

paint

public void paint(GC gc,
                  Canvas canvas,
                  Rectangle bounds)
Implement this method to draw a graphical representation of this annotation within the given bounds.

Parameters:
canvas - the canvas to draw on
bounds - the bounds inside the canvas to draw on

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.